package com.hqj.config;

import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Service;

@Service("permission")
public class PermissionService {

    public String hasPermi(String hasPermi){
        boolean flat = SecurityUtils.getSubject().isPermitted(hasPermi);//判断是否已经执行权限授权
        return flat?"":"hidden";
    }
}
